<template>
  <div>33
      {{name}}
  </div>
</template>

<script>
import {inject } from "vue"
export default {
name:"son",
setup(){
    let name = inject("name")
    return {
        name
    }
}
}
</script>

<style scoped>
div{
    width: 100px;
    height: 100px;
    background-color:blue;
}
</style>